
<!-- saved from url=(0026)http://localhost/test.html -->
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    
    <title>提问_马蜂窝问答</title>
    <meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no,minimal-ui,viewport-fit=cover">
    <meta name="copyright" content="Copyright (c) 2006-2018 Mafengwo.">
    <meta name="format-detection" content="telephone=no,address=no">
    <meta name="referrer" content="always">
    <meta name="apple-mobile-web-app-capable" content="no">
    <meta name="apple-mobile-web-app-status-bar-style" content="no">

    <link href="/css/mobile+css+head_mobile+css+ui^YVw^1526627473.css" rel="stylesheet" type="text/css">


    <link href="/css/ask.css" rel="stylesheet" type="text/css">


	<script src="/js/plugins/jquery/jquery.min.js"></script>
    <script src="/js/plugins/form/jquery.form.js"></script>
	<script src="/js/plugins/jrender/jrender.min.js"></script>
    <link rel="stylesheet" href="/js/plugins/dialog2/dialog.css"/>
    <script src="/js/plugins/dialog2/dialog.min.js"></script>
    <script>
        $(function () {
            $('#messageForms').ajaxForm(function (data) {
                if(data.success){
                    $(document).dialog({
                        type : 'confirm',
                        style: 'ISO',
                        titleShow: false,
                        content: '发送成功',
                        buttons: [
                            {
                                name: '返回个人页面',
                                callback: function() {

                                    window.location.href="javascript:window.history.go(-1)";
                                }
                            }
                        ]
                    });
                }
            })




            var Uid = JSON.parse(sessionStorage.getItem("receiverId"));
            if(Uid){
                $('#Uid').val(Uid);
                $('#messageForms').attr("action","/privateMessages/"+Uid);
            }
       //表单的提交
            $('._j_publish_question').click(function () {
                $('#messageForms').submit();
            });


        });
    </script>

</head><body>
<div id="pos38"></div>
<header class="head2home">
    <div class="rBtn">
        <a href="/index.html" class="home">官网首页</a>
        <a href="/index.html" class="sch"></a>
    </div>
</header>


<section class="Addnew">
    <form id="messageForms" method="post">
    <div id="_j_publish_box" class="ask_tan_con">
        <input type="hidden" id="Uid" name="Uid">
        <dl>
            <dt>私信内容</dt>
            <dd class="con_textarea _j_word" id="con_textarea">
                <textarea rows="1" id="pnl_textarea" class="_j_q_content _j_word_check" name="messageContent"></textarea>
                <div class="wordsnum"><span class="_j_word_num">0</span>/<span class="_j_max_num">1000</span></div>
                <div class="err-tips" style="display: none;"></div>
            </dd>
        </dl>

        <dl>
            <dd>
                <a class="_j_publish_question">发送</a>
            </dd>
            <dd>
                <a href="javascript:window.history.go(-1)" class="_j_publish_question">
               取消
                </a>
            </dd>
        </dl>
    </div>
    </form>
</section>



</body></html>